
#ifndef _MESH_ANIMATOR_H_
#define _MESH_ANIMATOR_H_

#include "mesh.h"
#include "../skelanim/skeleton.h"
#include "../skelanim/motion.h"
#include "../skelanim/animator.h"

class MeshAnimator: public Animator {
   
public:
   MeshAnimator();
   MeshAnimator(Mesh *, Skeleton *, Motion *);
   virtual ~MeshAnimator() { }
   
   void frame(int f);
   
protected:
   void setting();
   
protected:
   
   Mesh                       *mesh;
   vector<Point3>             ipositions; // initial vertex positions
   vector<Vector3>            inormals; // initial vertex normal
};

#endif
